package com.example.springdemo.retry;

import cn.cool.middleware.biz_exception_retry.config.interfaces.BizExceptionRetryStrategy;
import cn.cool.middleware.biz_exception_retry.domain.model.entity.BizExceptionRetryParamEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("strategy")
public class Strategy implements BizExceptionRetryStrategy {
    @Resource
    private RetryService retryService;

    @Override
    public void retry(BizExceptionRetryParamEntity paramEntity) {
        retryService.retry(1, "2");
    }
}




